Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: Telephony /
Chapter 3 - Directory Numbers / Directory Number Reference
Directory Number Functions / Setting Do Not Disturb Modes


TELDNDSet

Activates the Do Not Disturb feature, as implemented by the telephone network switch, on a directory number that you specify.

pascal TELErr TELDNDSet (TELDNHandle hTELDN, short dndType);
hTELDN
A handle to the directory number structure for the directory number on which you are setting Do Not Disturb.
dndType
The type of Do Not Disturb feature you are setting. The section "Do Not Disturb Types" (page 3-12) describes the constants to which you can set this field.
function result
A result code.
DESCRIPTION
The TELDNDSet function sets the Do Not Disturb feature for the directory number specified by the hTELDN parameter. The type of Do Not Disturb feature is specified by the dndType parameter. For example, to shut out all incoming calls, set dndType to telDNDIntExt. Note, however, that your application can provide more complex Do Not Disturb capabilities by inspecting the alerting pattern for an incoming call and rejecting unwanted calls (by calling TELReject).

SEE ALSO
To clear the Do Not Disturb feature, call the TELDNDClear function (page 3-27).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 DEC 1996



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help